package com.jt.demo51.pp01;


import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {
    public static void main(String[] args) {
        ApplicationContext a = new AnnotationConfigApplicationContext(Springconfig1.class);
        Service1 bean = a.getBean(Service1.class);
        bean.amazed();

    }
}
